package com.financing.wap.dao.impl;

import java.util.List;
import com.financing.wap.dao.impl.BaseDaoImpl;
import com.financing.wap.dao.IFpFundMFDao;
import com.financing.wap.dto.FpFundMFDTO;
import com.financing.wap.util.SqlName;

import org.springframework.stereotype.Repository;

/**
 * @Description:实现类
 * @author caojiayao
 * @version 1.0
 * @created 
 */
@Repository("fpFundMF")
public class FpFundMFDaoImpl extends BaseDaoImpl implements IFpFundMFDao {
	
	@Override
	public FpFundMFDTO getFpFundMF(Integer id) {
		return (FpFundMFDTO)this.getSqlMapClientTemplate().queryForObject(SqlName.fpFundMF,id);
	}
	
	
	@Override
	public Integer insertFpFundMF(FpFundMFDTO dto) {
		return (Integer) this.getSqlMapClientTemplate().insert(SqlName.insertFpFundMF,dto);
	}

	
	@Override
	public Integer updateFpFundMF(FpFundMFDTO dto) {
		return (Integer) this.getSqlMapClientTemplate().update(SqlName.updateFpFundMF, dto);
	}
	
	@Override
	public Integer delFpFundMF(Integer id) {
		return (Integer) this.getSqlMapClientTemplate().delete(SqlName.delFpFundMF, id);
	}
	
	@Override
	public List<FpFundMFDTO> listFpFundMF(FpFundMFDTO dto) {
		return (List<FpFundMFDTO>)this.getSqlMapClientTemplate().queryForList(SqlName.listFpFundMF, dto);
	}
	
	@Override
	public List<FpFundMFDTO> listFpFundMFByPage(FpFundMFDTO dto) {
		return (List<FpFundMFDTO>)this.getSqlMapClientTemplate().queryForList(SqlName.listFpFundMFByPage, dto);
	}
	
	
	public Integer countFpFundMF(FpFundMFDTO dto){
		return (Integer)this.getSqlMapClientTemplate().queryForObject(SqlName.countFpFundMF, dto);
	}
	
	@Override
	public Class<FpFundMFDTO> getEntityClass() {
		return FpFundMFDTO.class;
	}
}
